﻿using FreeSql;
using FYSJcrm.Core.Model.PermManage;
using System;
using System.Threading.Tasks;

namespace FYSJcrm.Core.IRepository.PermManage
{
    public interface IManagerRoleRepository : IBaseRepository<ManagerRoleEntity>
    {
        Task<bool> InsertRoleAsync(ManagerRoleEntity managerRole, string[] permissions);

        Task<bool> UpdateRoleAsync(ManagerRoleEntity managerRole, string[] permissions);

        Task<bool> DeleteRoleAsync(int id);

        Task<int> DeleteRoleAsync(int[] ids);
    }
}
